Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

test: add system tests#420

Merged
olavloite merged 17 commits intomainfrom
system-tests
Nov 8, 2024
Merged

test: add system tests#420
olavloite merged 17 commits intomainfrom
system-tests

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

@olavloite olavloite commented Oct 31, 2024

  1. Adds a system test session to the nox file + one (very simple) system test.
  2. Adds a GitHub Actions workflow to run the system tests on the emulator.
  3. Runs the system tests on Spanner in the Kokoro job.

@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Oct 31, 2024
@olavloite olavloite marked this pull request as ready for review October 31, 2024 15:20
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 1, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 1, 2024
@olavloite olavloite requested a review from asthamohta November 4, 2024 13:21
@olavloite
Copy link
Copy Markdown
Contributor Author

cc @rayudu3745

Comment thread noxfile.py
session.install("opentelemetry-api==1.27.0")
session.install("opentelemetry-sdk==1.27.0")
session.install("opentelemetry-instrumentation==0.48b0")
session.run("python", "create_test_database.py")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct, we cleanup the databases only when a new system test is run, right? Do we want to keep the database around to check for errors? Shouldn't we do a cleanup post the system tests being run as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, we were only cleaning up during the following run (and then only databases older than 4 hours). I've added a cleanup job that is executed after the system tests have executed.

@olavloite olavloite requested a review from asthamohta November 5, 2024 11:03
@olavloite olavloite merged commit 0f99f8d into main Nov 8, 2024
@olavloite olavloite deleted the system-tests branch November 8, 2024 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants